package com.yn.pet.controller.pc;


import com.yn.common.annotation.Anonymous;
import com.yn.common.core.domain.AjaxResult;
import com.yn.pet.controller.pc.biz.PetBizService;
import com.yn.pet.controller.pc.request.PetRequest;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 宠物(人)信息表(Pet)表控制层
 *
 * @author makejava
 * @since 2025-07-09 12:00:47
 */
@Anonymous
@RestController
@AllArgsConstructor
@RequestMapping("/admin/pet")
public class PetController {

    private final PetBizService petBizService;

    @GetMapping("pageList")
    public AjaxResult pageList(PetRequest petRequest) {
        return AjaxResult.success(petBizService.pageList(petRequest));
    }
}

